package com.ui.basic.command;

import org.springmodules.validation.bean.conf.loader.annotation.handler.Expression;
import org.springmodules.validation.bean.conf.loader.annotation.handler.Length;
import org.springmodules.validation.bean.conf.loader.annotation.handler.NotBlank;

import com.common.basic.base.BaseCommand;
import com.ui.basic.ibatis.model.system.TblSUser;

public class CommandChangePswd extends BaseCommand implements java.io.Serializable {

	private static final long serialVersionUID = 8516278119411466806L;

	private Long id;

	@NotBlank
	@Length(max = 32)
	private String curPassword;

	@NotBlank
	@Length(max = 32)
	private String password;

	@Length(max = 32)
	@Expression(value = "verifyPassword == password")
	private String verifyPassword;

	private TblSUser user;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCurPassword() {
		return curPassword;
	}

	public void setCurPassword(String curPassword) {
		this.curPassword = curPassword;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getVerifyPassword() {
		return verifyPassword;
	}

	public void setVerifyPassword(String verifyPassword) {
		this.verifyPassword = verifyPassword;
	}

	public void setUser(TblSUser user) {
		this.user = user;
	}

	public TblSUser getUser() {
		return user;
	}
}